<!DOCTYPE html>
<html>
<head>
 {include file="top.tpl"}
</head>
<body class="skin-blue">
<div class="wrapper">
	{include file="bread_crumbs.php"}
	<!--引入面包屑-->
	<section class="base-setting-wrap">
		<div class="row">
			<div class="col-md-12">
				<div class="box">
					<div class="box-header with-border clearfix">
						<div class="nav-tabs-custom">
							<ul class="nav nav-tabs">
								<li><a href="/backup/demand">采购需求列表</a></li>
								<li><a href="/backup/demand/reject-list">需求待确认列表</a></li>
								<li class="active"><a href="/backup/demand/story-intercept">需求拦截列表</a></li>
								<li><a href="/backup/log/list">采购需求产生日志</a></li>
							</ul>
						</div>
						<div class="box-form pull-right form-group-sm">
							<div class="pull-right"><a href="javascript:;" class="btn btn-success btn-sm" id="js_toggleSearchBox"><i class="fa fa-search"></i><span class="pl5">搜索选项</span></a></div>
						</div>

						<div class="clearfix"></div>
						<div class="search-box" id="js_searchBox">
							<form method="get" action="" class="form-inline auto-restore">
								<div class="form-group-sm">
									<p class="no-margin">

										<label class="control-label">产品编码：</label>
										<input type="text" class="form-control" name="goods_sn" value="{$queryParameter['goods_sn']|default:''}">
							            选择存放仓库:
				                        <select name="warehouse" id="warehouse_search_select"  style="width:150px">
				                        </select>
										<button type="submit" class="btn btn-primary btn-sm ml5">立即搜索</button>
									</p>
								</div>
							</form>
						</div>
					</div>
	                <div class="box-body">
	                		<div class="clearfix"></div>
							<table class="table table-bordered table-striped no-margin">
								<thead>
									<tr>
										<th>产品编码</th>
										<th>产品图片</th>
										<th>产品名称</th>
										<th>类型</th>
										<th>需求数量</th>
										<th>需求仓库</th>
										<th>销售仓库</th>
										<th>拦截原因</th>
									</tr>
								</thead>
								<tbody>
									{foreach from=$list item=item}
									<tr>
										<td>{$item.goods_sn}</td>
										<td>{if !empty($item['thumb_url'])}<img src="{$pdmDomain}{$item.thumb_url}" alt="{$item.product_name}">{/if}</td>
										<td length="100">{$item.product_name}</td>
										<td>需求{$item.story_type|upper}</td>
										<td>{$item.quantity}</td>
										<td>{$item.storyWarehouseName}</td>
										<td>{$item.salesWarehouseName}</td>
										<td>{$ression[$item.type]}</td>
									</tr>
								</tbody>
								{/foreach}
							</table>
					    </div>
	                <!-- .box-body -->
	                <div class="box-footer text-center clearfix">
					    {$pageLink}
	                </div>
	              </div>
			</div>
		</div>
	</section>
</div>
{include file='foot.tpl'}
<script src="{$js.url}app_widget/warehouse.js"></script>

<script>
//时间选择
$('.js_datePicker').datepicker();

//仓库搜索
warehouseSearch2('#warehouse_search_select',GLOBAL.getUrlParam('warehouse'));
</script>

</body>
</html>
